import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [


  {
    path: '/',
    component: () => import( '../views/main.vue'),
    children: [{
      path: 'welcome',
      component: () => import('../views/main/welcome.vue')
    },
      {
        path: 'about',
        component: () => import('../views/main/about.vue')
      },
      {
        path: 'base/',
        children: [
          {
            path: 'station',
            component: () => import('../views/main/base/station.vue')
          },
          {
            path: 'train',
            component: () => import('../views/main/base/train.vue')
          },
          {
            path: 'train-station',
            component: () => import('../views/main/base/train-station.vue')
          },
          {
            path: 'train-carriage',
            component: () => import('../views/main/base/train-carriage.vue')
          },
          {
            path: 'train-seat',
            component: () => import('../views/main/base/train-seat.vue')
          },
      ]
      },
      {
        path:'batch/',
        children: [
          {
            path: 'job',
            component: () => import('../views/main/bath/job.vue')
          }
        ]
      },

    ]
  },
  {
    path: '',
    redirect: '/welcome',
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
